package com.printeverywhere.util;

import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.FileWriter;

public class NutchUtil {

	public void writeToFile(String[] urlName, String fileName) {
		try {
			// Create file
			FileWriter fstream = new FileWriter(fileName);
			BufferedWriter out = new BufferedWriter(fstream);
			for (int index = 0; index < urlName.length; index++) {
				out.write(urlName[index]);
				out.write(AdminConstants.NEW_LINE);
			}
			// Close the output stream
			out.close();
		} catch (Exception e) {// Catch exception if any
			System.err.println("Error: " + e.getMessage());
		}
	}
	public static void main(String[] args) {

	}
}
